<template>
  <div class="student-confirm">
    <div class="student-confirm-container">
      <div class="student-confirm-container-logo">
        <img src="~@/assets/login-logo.png" alt="" />
      </div>
      <div class="student-confirm-container-desc">
        佛山科学技术学院计算机协会 强力驱动
      </div>
      <div class="student-confirm-container-content">
        <RouterView #default="{ Component }">
          <transition :name="getAnimateSetting" mode="out-in" appear>
            <component :is="Component" />
          </transition>
        </RouterView>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import { useSetting } from '@/store/modules/setting'
const { getAnimateSetting } = useSetting()
const router = useRouter()

// 默认跳转到
router.push({ name: 'input-sno' })
</script>

<style lang="less" scoped>
.student-confirm {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: auto;

  &-container {
    flex: 1;
    padding: 32px 0;
    width: 384px;
    margin: 0 auto;

    img {
      width: 100%;
      padding: 40px 0 20px 0;
    }

    &-desc {
      font-size: 15px;
      color: #808695;
      text-align: center;
    }

    &-content {
      margin: 40px 0;
    }
  }
}

@media (min-width: 768px) {
  .student-confirm {
    background-image: url('../../../assets/login.svg');
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100%;
  }
}
</style>
